{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "source": [
    "print('hello jupyter Notebook!')"
   ],
   "outputs": [
    {
     "output_type": "stream",
     "name": "stdout",
     "text": [
      "hello jupyter Notebook!\n"
     ]
    }
   ],
   "metadata": {}
  },
  {
   "cell_type": "markdown",
   "source": [
    "# Jupyter Notebook是什么？\r\n",
    "\r\n",
    "Jupyter Notebook是一个开源项目，它可以让您轻松地将Markdown文本内容和可执行Python源代码组合在一个称为notebook的文本文件中。\r\n",
    "\r\n",
    "Jupyter Notebook将基于控制台的方法扩展到交互式计算中，使之成为一个全新的方向，提供了一个基于web的应用程序，适用于捕获整个计算过程：开发、记录和执行代码，以及交流结果。Jupyter笔记本由两部分组成：\r\n",
    "\r\n",
    "web应用程序：一种基于浏览器的工具，用于交互式创作文档，将解释文本、数学、计算及其富媒体输出结合起来。\r\n",
    "\r\n",
    "Notebook文档：表示web应用程序中可见的所有内容，包括计算的输入和输出、解释性文本、数学、图像和对象的富媒体表示。\r\n",
    "\r\n",
    "# 如何在VS Code中使用Jupyter Notebook\r\n",
    "\r\n",
    "## 设置环境\r\n",
    "\r\n",
    "1. 安装VS Code的Python扩展，该扩展默认支持Jupyter Nodebook功能。\r\n",
    "2. 在python环境中安装jupyter包：`pip install jupyter`\r\n",
    "\r\n",
    "## 创建Jupyter Notebook\r\n",
    "\r\n",
    "1. 创建文件后缀名为`.ipynb`的文件。\r\n",
    "\r\n",
    "2. 选择创建的文件，按右键，选择快捷菜单中的在笔记本编辑器中打开\r\n",
    "\r\n",
    "  ![](https://secure.wostatic.cn/static/dMccn9tdxMrzTck8idMfnv/image.png)\r\n",
    "\r\n",
    "1. 选择Pyhon解释器。（如果为初次使用，还会提示安装必要的扩展包）\r\n",
    "\r\n",
    "![](https://secure.wostatic.cn/static/vUhZm37ABXgKtmPueQKykH/image.png)\r\n",
    "\r\n",
    "## 增加单元格\r\n",
    "\r\n",
    "Jupyter Nodebook中的单元格有两类：可运行代码的单元格和Markdown单元格。在VS Code提供的界面工具栏中，有创建不同单元格的按钮：\r\n",
    "\r\n",
    "![](https://secure.wostatic.cn/static/gCdiqUcrw4qzPnXXkuiT2w/image.png)\r\n",
    "\r\n",
    "## 运行单元格\r\n",
    "\r\n",
    "一旦你有了一个Jupyter Nodebook，你可以使用单元格左边的run图标运行一个代码单元格，输出将直接显示在代码单元格的下方。您还可以使用键盘快捷键运行代码。在命令或编辑模式下，使用Ctrl+Enter运行当前单元格，或使用Shift+Enter运行当前单元格并前进到下一个单元格。\r\n",
    "\r\n",
    "![](https://secure.wostatic.cn/static/kXmcbA1JZa8Ko1s1376jwy/image.png)\r\n",
    "\r\n",
    "\r\n",
    "\r\n",
    "# 参考资料\r\n",
    "\r\n",
    "1. [The Jupyter Notebook — Jupyter Notebook 6.4.4 documentation (jupyter-notebook.readthedocs.io)](https://jupyter-notebook.readthedocs.io/en/stable/index.html)\r\n",
    "\r\n",
    "2. [Working with Jupyter Notebooks in Visual Studio Code](https://code.visualstudio.com/docs/datascience/jupyter-notebooks)"
   ],
   "metadata": {}
  },
  {
   "cell_type": "markdown",
   "source": [
    "# Markdown 基本语法\r\n",
    "\r\n",
    "## 列表\r\n",
    "\r\n",
    "1. 列表项目\r\n",
    "1. 列表项目\r\n",
    "1. 列表项目\r\n",
    "\r\n",
    "* 列表项目\r\n",
    "* 列表项目\r\n",
    "* 列表项目\r\n",
    "\r\n",
    "## 代码标记\r\n",
    "\r\n",
    "使用`Ctrl+Enter`运行当前单元格\r\n",
    "\r\n",
    "```\r\n",
    "1. [The Jupyter Notebook — Jupyter Notebook 6.4.4 documentation (jupyter-notebook.readthedocs.io)](https://jupyter-notebook.readthedocs.io/en/stable/index.html)\r\n",
    "```\r\n",
    "\r\n",
    "## 超级链接\r\n",
    "1. [The Jupyter Notebook — Jupyter Notebook 6.4.4 documentation (jupyter-notebook.readthedocs.io)](https://jupyter-notebook.readthedocs.io/en/stable/index.html)\r\n",
    "\r\n",
    "## 图片\r\n",
    "\r\n",
    "使用绝对地址插入图片：\r\n",
    "![西北民族大学](https://tse1-mm.cn.bing.net/th/id/OIP-C.1iSlknW2Wn15Af270v2VQgHaFk?w=249&h=187&c=7&r=0&o=5&pid=1.7)\r\n",
    "\r\n",
    "使用相对地址插入图片：\r\n",
    "![西北民族大学拔河比赛](../images/bahe.jpg)"
   ],
   "metadata": {}
  }
 ],
 "metadata": {
  "orig_nbformat": 4,
  "language_info": {
   "name": "python",
   "version": "3.9.7",
   "mimetype": "text/x-python",
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "pygments_lexer": "ipython3",
   "nbconvert_exporter": "python",
   "file_extension": ".py"
  },
  "kernelspec": {
   "name": "python3",
   "display_name": "Python 3.9.7 64-bit ('sda-2020-1': venv)"
  },
  "interpreter": {
   "hash": "4637a9784c399fcab3c04262ccb84c20f81b8b61e1166e9dac843a98de3261f4"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}